/******************************************************隐藏域*****************************************************/
_$.Hidden=function (target){
    var _this = this;
    _$.Hidden.superclass.constructor.call(_this,target);
};
_$.regClass("Hidden",_$.Hidden);

_$.extend(_$.Hidden,_$.Text, {
    _cls:_$._clsPre + "Hidden",
    _uiCls:_$._uiPreCls + "Hidden",
    _create :function(){
        var _this = this;
        var source='<div id="{{id}}" ><input type="hidden" class="Hidden" /> </div>';

        var template = Handlebars.compile(source);
        var result = template(_this.options);
        var element = $(result);
        _this.el.replaceWith(element);
        _this.el = element;
        _this.el.attr("componentId",_this.uid);
        _this.el.addClass(_this._uiCls);

        _this.component = $(".Hidden",_this.el);
        _this._init();
    },
    setValue:function(value) {
        var _this = this;
        if(isEmpty(value)){
            _this.value = null;
            _this.component.val("");
        }else{
            _this.value = value;
            _this.component.val(value);
        }
    },
    getValue:function(){
        var _this = this;
        _this._sync();
        return _this.value;
    }
});
